﻿@model SklepISI.Web.Models.AccountViewModel

@{   
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "Ustawienia konta";    
}
@section AddToHead{
    
}

<div class="hero-unit">
    <h2 class="text-align-center">Zmień ustawienia swojego konta</h2>
    <p class="properties-buttons">
        <a class="btn btn-warning btn-large" href="@Url.Action("ChangePassword","Account")">
            Zmień hasło
        </a>
        <a class="btn btn-danger btn-large" href="#question" role="button" data-toggle="modal">
            Usuń konto
        </a>
        @if(User.IsInRole("Administrator"))
        {
            <a class="btn btn-primary btn-large" href="@Url.Action("Index","Admin")">
                Admin Panel
            </a>
        }
    </p>
</div>
<div id="question" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3>Usuwanie konta.</h3>
    </div>
    <div class="modal-body">
        <p>Czy na pewno chcesz usunąć konto?</p>
    </div>
    <div class="modal-footer">
        <a href="@Url.Action("Delete","Account")"><button class="btn btn-inverse">Tak</button></a>
        <button class="btn" data-dismiss="modal" aria-hidden="true">Nie</button>
        
    </div>
</div>